const routes = [
	{
		path: '/',
		component: resolve => require(['components/context/'], resolve),
		children:[
			{
				path: '/',
				component:resolve => require(['components/context/homePage/'], resolve)
			},
			{
				path: 'home',
				component:resolve => require(['components/context/homePage/'], resolve)
			},
			{
				path: 'current',
				component: resolve => require(['components/context/current/'], resolve),
				children:[
					{
						path: '/',
						component: resolve => require(['components/context/current/content/equipment'], resolve)
					},
					{
						path: 'equipment',
						component:resolve => require(['components/context/current/content/equipment'], resolve)
					},
					{
						path: 'port',
						component:resolve => require(['components/context/current/content/port'], resolve)
					},
					{
						path: 'userMonitor',
						component:resolve => require(['components/context/current/content/userMonitor'], resolve)
					},
					{
						path: 'onlineNode',
						component:resolve => require(['components/context/current/content/onlineNode'], resolve)	
					},					
					{
						path: 'blockPage',
						component:resolve => require(['components/context/current/content/blockPage'], resolve)	
					},
					{
						path: 'whiteList',
						component:resolve => require(['components/context/current/content/whiteList'], resolve)	
					},
					{
						path: 'blacklist',
						component:resolve => require(['components/context/current/content/blacklist'], resolve)	
					}
				]
			},
			{
				path: 'system',
				component: resolve => require(['components/context/systemSet/'], resolve),
				children:[
					{
						path: '/',
						component:resolve => require(['components/context/systemSet/content/update'], resolve)
					},		
					{
						path: 'update',
						component:resolve => require(['components/context/systemSet/content/update'], resolve)
					},
					{
						path: 'backups',
						component:resolve => require(['components/context/systemSet/content/backups'], resolve)
					},
					{
						path: 'shutdown',
						component:resolve => require(['components/context/systemSet/content/shutdown'], resolve)
					},
					{
            path: 'syspolt',
						component:resolve => require(['components/context/systemSet/content/syspolt'], resolve)
					},
					{
            path: 'diagnose',
						component:resolve => require(['components/context/systemSet/content/diagnose'], resolve)
					},
					{
            path: 'sysmanagement',
						component:resolve => require(['components/context/systemSet/content/sysmanagement'], resolve)
					},
					{
						path: 'admin',
						component:resolve => require(['components/context/systemSet/content/admin'], resolve)	
					},
					{
						path: 'datatime',
						component:resolve => require(['components/context/systemSet/content/datatime'], resolve)	
					},
					{
						path: 'info',
						component:resolve => require(['components/context/systemSet/content/info'], resolve)	
					}
				]
			},
			{
				path: 'netManage',
				component: resolve => require(['components/context/netManage/'], resolve),
				children: [
					{
						path: '/',
						component:resolve => require(['components/context/netManage/content/globalconf'], resolve)
					},		
					{
						path: 'globalconf',
						component:resolve => require(['components/context/netManage/content/globalconf'], resolve)
					},
					{
						path: 'ripconf',
						component:resolve => require(['components/context/netManage/content/ripconf'], resolve)
					},
					{
						path: 'vipconf',
						component:resolve => require(['components/context/netManage/content/vipconf'], resolve)	
					},
					{
						path: 'wipconf',
						component:resolve => require(['components/context/netManage/content/wipconf'], resolve)	
					},
					{
						path: 'vnetconf',
						component:resolve => require(['components/context/netManage/content/vnetconf'], resolve)	
					},
					{
						path: 'vresconf',
						component:resolve => require(['components/context/netManage/content/vresconf'], resolve)	
					},
					{
						path: 'staticaddr',
						component:resolve => require(['components/context/netManage/content/staticaddr'], resolve)
					},
					{
						path: 'staticroute',
						component:resolve => require(['components/context/netManage/content/staticroute'], resolve)	
					},
					{
						path: 'trunk',
						component:resolve => require(['components/context/netManage/content/trunk'], resolve)	
					},
					{
						path: 'agreement',
						component:resolve => require(['components/context/netManage/content/agreement'], resolve)	
					},
					{
						path: 'softbypass',
						component:resolve => require(['components/context/netManage/content/softbypass'], resolve)	
					}
				]
			},
			{
				path: 'defend',
				component: resolve => require(['components/context/defend/'], resolve),
				children: [
					{
						path: '/',
						component:resolve => require(['components/context/defend/content/safeplot'], resolve)
					},
					{
						path: 'safeplot',
						component:resolve => require(['components/context/defend/content/safeplot'], resolve)
					},		
					{
						path: 'blacklist',
						component:resolve => require(['components/context/defend/content/blacklist'], resolve)
					},
					{
						path: 'hostcomputer',
						component:resolve => require(['components/context/defend/content/hostcomputer'], resolve)
					},
					{
						path: 'selfset',
						component:resolve => require(['components/context/defend/content/selfset'], resolve)
					},
					{
						path: 'HostAP',
						component:resolve => require(['components/context/defend/content/Hostap'], resolve)
					},
					{
						path: 'whitelist',
						component:resolve => require(['components/context/defend/content/whitelist'], resolve)	
					},
					{
						path: 'holomask',
						component:resolve => require(['components/context/defend/content/holomask'], resolve)	
					},
					{
						path: 'trapnode',
						component:resolve => require(['components/context/defend/content/trapnode'], resolve)	
					},
					{
						path: 'trapwlist',
						component:resolve => require(['components/context/defend/content/trapwlist'], resolve)	
					}
				]
			},
			{
				path: 'logManage',
				component: resolve => require(['components/context/logManage/'], resolve),
				children: [
					{
						path: '/',
						component:resolve => require(['components/context/logManage/content/permeatelog'], resolve)
					},
					{
						path: 'log',
						component:resolve => require(['components/context/logManage/content/permeatelog'], resolve)
					},		
					{
						path: 'statistic',
						component:resolve => require(['components/context/logManage/content/statistic'], resolve)
					},
					{
						path: 'terminallog',
						component:resolve => require(['components/context/logManage/content/terminallog'], resolve)
					},
					{
						path: 'deblocklog',
						component:resolve => require(['components/context/logManage/content/deblocklog'], resolve)
					},
					{
						path: 'eventlog',
						component:resolve => require(['components/context/logManage/content/eventlog'], resolve)	
					},
					{
						path: 'orderlog',
						component:resolve => require(['components/context/logManage/content/orderlog'], resolve)	
					},
					{
						path: 'serverlog',
						component:resolve => require(['components/context/logManage/content/serverlog'], resolve)	
					}
				]
			}
		]
	},
	{
		path: '/login',
		component: resolve => require(['components/login/'],resolve)
	},
	{
		path: '/errorpage',
		component: resolve => require(['components/error/'],resolve)
	}
]


export default routes